<div class="box box-primary">
    <?php echo form_open('', 'role="form"'); ?>
    <div class="box-body">
        <div class="form-group">
            <label for="resolution_name">壁纸分辨率</label>
            <input type="text" class="form-control" id="resolution_name" name="resolution_name"
                   placeholder="壁纸分辨率"
                   value="<?php echo set_value('resolution_name', ($resolution ? $resolution->resolution_name : '')); ?>">
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label for="resolution_width">壁纸宽度 *</label>
                    <input type="text" class="form-control" id="resolution_width" name="resolution_width"
                           placeholder="壁纸宽度"
                           value="<?php echo set_value('resolution_width', ($resolution ? $resolution->resolution_width : '')); ?>">
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label for="resolution_height">壁纸高度 *</label>
                    <input type="text" class="form-control" id="resolution_height" name="resolution_height"
                           placeholder="壁纸高度"
                           value="<?php echo set_value('resolution_height', ($resolution ? $resolution->resolution_height : '')); ?>">
                </div>
            </div>
        </div>


        <div class="form-group">
            <label for="resolution_group_seq_id">壁纸分类 *</label>
            <?php echo form_dropdown('resolution_group_seq_id', array('' => '选择分类') + ($resolution_group ? $resolution_group : array()), ($resolution ? $resolution->resolution_group_seq_id : array()), 'class="form-control select2" id="resolution_group_seq_id"'); ?>
        </div>


        <div class="form-group">
            <label for="resolution_status">
                <input name="resolution_status"
                       id="resolution_status" <?php echo set_checkbox('resolution_status', 'confirm', ($resolution ? ($resolution->resolution_status ? TRUE : FALSE) : TRUE)) ?>
                       value="confirm"
                       type="checkbox" class="flat-red"> 启用?
            </label>
        </div>


    </div>

    <div class="box-footer">
        <button type="submit" class="btn btn-primary">提交</button>
    </div>
    <?php echo form_close(); ?>
</div>

